//
//  RTopicViewCell.m
//  EPAa
//
//  Created by lanou3g on 16/4/22.
//  Copyright © 2016年 李日青. All rights reserved.
//

#import "RTopicViewCell.h"
#import "UIImageView+WebCache.h"
@interface RTopicViewCell ()
@property (weak, nonatomic) IBOutlet UIImageView *titleImage;
@property (weak, nonatomic) IBOutlet UILabel *titlelabel;
@property (weak, nonatomic) IBOutlet UILabel *totallabel;
@property (weak, nonatomic) IBOutlet UIImageView *sourceImage;
@property (weak, nonatomic) IBOutlet UILabel *sourcrIdLabel;
@property (weak, nonatomic) IBOutlet UILabel *likelabel;
@property (weak, nonatomic) IBOutlet UILabel *conmentLabel;



@end
@implementation RTopicViewCell

- (void)layoutSubviews {
    self.titlelabel.text = self.model.title;
    [self.titleImage sd_setImageWithURL:[NSURL URLWithString:self.model.coverimg]];
    self.totallabel.text = self.model.content;
    [self.sourceImage sd_setImageWithURL:[NSURL URLWithString:self.model.userinfoModel.icon]];
    self.likelabel.text = [NSString stringWithFormat:@"%ld",self.model.counterListModel.like];
    self.conmentLabel.text = [NSString stringWithFormat:@"%ld",self.model.counterListModel.comment];
    self.sourcrIdLabel.text = [NSString stringWithFormat:@"%ld",self.model.userinfoModel.uid];
}


- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
